/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ie.tcd.cs.railtickets.server.service;

import ie.tcd.cs.railtickets.commons.dto.PriceInfoDTO;
import ie.tcd.cs.railtickets.commons.dto.TicketDTO;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Wenbo Sun
 */
public interface TicketService {

    public TicketDTO bookTicket(long pathTimeId, Date travelDate, String ipAddr);
    
    public List<TicketDTO> bookTickets(long pathTimeId, Date travelDate, int sum, String ipAddr);

    public List<PriceInfoDTO> getPriceInfos(String sourceStation, String destinationStation, Date travelDate);

    public boolean cancelTicket(String ticketNo, String ipAddr);

    public boolean checkAgentExist(String ipAddr);
}
